class Solution {
    int num = 0;
    public int sumNums(int n) {
        boolean flag = n > 0 && (num = (num + n + sumNums(n - 1))) > 0;
        return num;
    }
}